Visual Basic (Declaration) | |
---|---|
Public Property TransactionLog As ITransactionLog(Of TKey,TValue) |
C# | |
---|---|
public ITransactionLog<TKey,TValue> TransactionLog {get; set;} |
BPlusTree/BPlusTree.Test/TestBackupAndRecovery.cs
C# | Copy Code |
---|---|
using (TempFile temp = new TempFile()) { var options = GetOptions(temp); options.MaximumValueNodes = 255; options.MinimumValueNodes = 100; options.TransactionLog = new TransactionLog<Guid, TestInfo>( new TransactionLogOptions<Guid, TestInfo>( options.TransactionLogFileName, options.KeySerializer, options.ValueSerializer ) { FileOptions = FileOptions.None } /* no-write through */ ); TestRecoveryOnExisting(options, 100, ushort.MaxValue); } |
VB.NET | Copy Code |
---|---|
Using temp As New TempFile() Dim options As var = GetOptions(temp) options.MaximumValueNodes = 255 options.MinimumValueNodes = 100 ' no-write through options.TransactionLog = New TransactionLog(Of Guid, TestInfo)(New TransactionLogOptions(Of Guid, TestInfo)(options.TransactionLogFileName, options.KeySerializer, options.ValueSerializer) With { _ Key .FileOptions = FileOptions.None _ }) TestRecoveryOnExisting(options, 100, UShort.MaxValue) End Using |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
BPlusTree.OptionsV2<TKey,TValue> ClassBPlusTree.OptionsV2<TKey,TValue> Members
ITransactionLog
Source Code
BPlusTree/Collections/BPlusTree.Options.csBPlusTree/Collections/BPlusTree.cs